package com.zzx.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.zzx.entity.PassTable;

public interface IPassTableDao {
	int insertPassword(PassTable passTable);

	int deleteFromPasswordByUid(Integer uid);

//	改
	int updatePassword(PassTable passTable);

	// 查 #{startIndex},#{pageSize}
	List<PassTable> selectInfoFromPasswordByPage(@Param("startIndex") Integer startIndex,
			@Param("pageSize") Integer pageSize);

	// 根据用户的id查询Password表
	PassTable selectPasswordByUid(Integer uid);
	
	 //查询用户密码的盐salt
    String selectUserSaltByUid(Integer uid);
    
    //查询用户的状态用于验证登录
    Integer selectStatusByUidAndPassword(@Param("uid") int uid,@Param("encodedpass") String encodedpass);
}
